package com.peas.platform.module.icims.contract.initial.controller.vo;

import java.util.*;

import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.common.core.vo.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.*;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("初始合同执行-中止")
public class ContractInitialInterruptVo extends BaseVo {

    // 【初始合同表】
    @Comment(value = "合同ID")
    @ApiModelProperty(value = "合同ID")
    @NotNull(message = "合同ID不能为空")
    private Long contractInitialId;

    @Comment(value = "批次号")
    @ApiModelProperty(value = "批次号")
    @Size(max = 20, message = "批次号不能超过20个字符")
    private String batch;

    // 【用户表】
    @Comment(value = "中止经办人")
    @ApiModelProperty(value = "中止经办人")
    private Long interruptUserId;

    // 【组织架构表】
    @Comment(value = "中止经办人部门")
    @ApiModelProperty(value = "中止经办人部门")
    private Long interruptDepartmentId;

    @Comment(value = "中止原因")
    @ApiModelProperty(value = "中止原因")
    private String interruptReason;

    @Comment(value = "中止状态", enumType = "ContractInitialInterruptState")
    @ApiModelProperty(value = "中止状态", notes = "枚举取值:ContractInitialInterruptState")
    @Size(max = 20, message = "中止状态不能超过20个字符")
    private String state;

    // 非持久化
    private List<ContractInitialInterruptAttachmentVo> attachments;

}
